public class TestArray{
	public static void main(String[] args){
		testArray();
		
	}
	static void testArray(){
		final int COUNT =10;
		int sum = 0;
		int avg = 0;
		final int MAX = 101;
		final int MIN =60;
		int[] scores = new int[COUNT];
		
		for(int i =0;i<scores.length;i++){
			scores[i] = getRandomByMath(MAX,MIN);
			sum+=scores[i];
			System.out.println(scores[i]+"\t");
		}
		avg=sum/COUNT;
		System.out.println("sum="+sum);
		System.out.println("avg="+avg);
		
		
		
	}
	static int getRandomByMath(int max,int min){
		int num =(int)(Math.random()*(max - min )+min);
		return num;
	}
}